.work {
  @at-root {
    &-layout {
      width: 1078px;
      // min-width: 1078px;
      display: flex;
      flex-direction: column;
    }
    &-form {
      display: flex;
      flex-direction: column;
      height: 106px;
      flex: 1;
      label {
        font-size: 14px;
        color: #82899a !important;
        margin-right: 0 !important;
      }
      .el-cascader {
        input {
          width: 204px !important;
          padding-left: 0 !important;
        }
      }
      &_title {
        width: 100%;
        height: 40px;
        background: rgba(0, 0, 0, 0.06);
        border-radius: 8px;
        padding: 0 12px;
        box-sizing: border-box;
        margin-bottom: 4px;
      }
    }
    &-upload {
      cursor: pointer;
      width: 189px;
      margin-right: 10px;
      height: 106px;
      background: rgba(247, 251, 255, 1);
      border-radius: 8px;
      border: 1px dashed rgba(35, 119, 233, 1);
      position: relative;
      &_edit {
        position: absolute;
        left: 8px;
        bottom: 10px;
        width: 73px;
        height: 22px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 1);
        font-size: 12px;
        color: rgba(255, 255, 255, 1);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      &_button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 86px;
        i {
          width: 25px !important;
          height: 25px !important;
          margin: 0 0 4px 0 !important;
        }
        span {
          font-size: 14px;
          color: rgba(35, 119, 233, 1);
        }
      }
      &_tips {
        border-top: 1px dashed rgba(35, 119, 233, 1);
        font-size: 12px;
        text-align: center;
        color: rgba(129, 136, 153, 1);
        height: 20px;
      }
    }
    &-add {
      background: rgba(255, 255, 255, 1);
      border-radius: 8px;
      padding: 20px 18px;
      margin-top: 20px;
      &_subject {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        background: rgba(247, 251, 255, 1);
        border-radius: 8px;
        border: 1px dashed rgba(35, 119, 233, 1);
      }
    }
    &-course {
      width: 100%;
      padding: 13px 10px;
      box-sizing: border-box;
      height: 131px;
      background: #fff;
      display: flex;
      align-items: center;

      &_img {
        height: 106px;
        width: 190px;
        border-radius: 8px;
        margin-right: 20px;
      }
      &_title {
        font-size: 24px;
        color: rgba(35, 46, 58, 1);
        line-height: 1;
        margin-top: 2px;
      }
      &_info {
        display: flex;
        margin-top: 13px;
        span {
          font-size: 14px;
          color: #666;
          display: block;
          & + span {
            margin-left: 40px;
          }
        }
      }
      &_date {
        margin-top: 12px;
        font-size: 14px;
        color: #666;
        line-height: 1;
      }
    }
    &-line {
      width: 20px;
      position: absolute;
      background: url('~@/assets/images/icons/4_3_2yuan@2x.png') repeat-y top
        left;
      background-position: 0 4px;
      top: 0;
      bottom: 0;
      left: 528px;
    }
    &-subject {
      position: relative;
      padding: 22px 42px;
      margin-top: 10px;
      background: #fff;
      width: 100%;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      &.edit {
        padding-right: 16px;
        .work-input {
          width: 420px;
        }
        .work-subject_left {
          max-width: 420px;
        }
        .work-line {
          left: 500px;
        }
      }
      &_left {
        max-width: 450px;
      }
      &_title {
        font-size: 16px;
        margin-bottom: 10px;
        color: #232e3a;
        font-weight: 500;
      }
    }
    &-answer {
      font-size: 16px;
      font-weight: 500;
      color: #333;
      margin-bottom: 7px;
      &_content {
        width: 454px;
        line-height: 26px;
        font-size: 14px;
        color: rgba(129, 136, 153, 1);
      }
    }
    &-file {
      cursor: pointer;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      &:hover {
        .work-filename {
          &::after {
            opacity: 1;
          }
        }
      }
    }
    &-filename {
      font-size: 12px;
      color: rgba(129, 136, 153, 1);
      margin-left: 5px;
      position: relative;
      &:after {
        transition: all 0.3 linear;
        content: '';
        height: 1px;
        background: rgba(129, 136, 153, 1);
        opacity: 0;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
      }
    }
    &-option {
      font-size: 14px;
      color: rgba(102, 102, 102, 1);
      & + .work-option {
        margin-top: 13px;
      }
    }
    &-input {
      font-size: 14px;
      color: #666;
      width: 450px;
      height: 36px;
      background: rgba(255, 255, 255, 1);
      border-radius: 8px;
      border: 1px solid rgba(215, 220, 225, 1);
      box-sizing: border-box;
      padding: 0 12px;
      line-height: 36px;
      &::placeholder {
        color: rgba(181, 181, 181, 1);
      }
    }
    &-slide {
      margin-left: 16px;
      flex: 1;
      background: #fff;
      padding: 18px 0 0 8px;
      display: flex;
      flex-direction: column;
      min-width: 186px;
      height: fit-content;
    }
    &-block {
      padding-bottom: 3px;
      margin-bottom: 10px;
      border-bottom: 1px dashed #b7b7b7;
      &:last-child {
        border-bottom: 0;
      }
      &_icon {
        @include wh(48, 48);
        &.course {
          @include bgwh('~@/assets/images/icons/4_2_2glkc@2x.png', 20, 24);
        }
        &.class {
          @include bgwh('~@/assets/images/icons/4_2_2glbj@2x.png', 20, 24);
        }
        &.people {
          @include bgwh('~@/assets/images/icons/4_2_2glxy@2x.png', 20, 24);
        }
      }
      &_title {
        font-size: 14px;
        font-weight: 400;
        color: rgba(35, 46, 58, 1);
        margin-bottom: 8px;
        display: flex;
        align-items: center;
      }
    }
    &-tags {
      display: flex;
      flex-wrap: wrap;
    }
    &-tag {
      padding: 4px 8px;
      font-size: 12px;
      line-height: 17px;
      background: rgba(224, 240, 255, 1);
      border-radius: 11px;
      margin-bottom: 10px;
      color: rgba(102, 102, 102, 1);
      margin-right: 8px;
      position: relative;
      &_delete {
        cursor: pointer;
        position: absolute;
        top: -4px;
        right: 0px;
        width: 13px;
        border-radius: 50%;
        height: 13px;
        background: rgba(233, 41, 21, 1);
        @include flexCenter;
        &:after {
          content: '';
          width: 7px;
          height: 1px;
          background: #fff;
        }
      }
      &_add {
        width: 70px;
        height: 22px;
        background: rgba(247, 251, 255, 1);
        border-radius: 11px;
        border: 1px dashed rgba(35, 119, 233, 1);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        cursor: pointer;
        i {
          margin: 0;
        }
      }
    }
  }
}
